Conditions | 2 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {Inject} from '@nestjs/common'; |
||
14 | |||
15 | public async convert(holiday: Holiday): Promise<void> { |
||
16 | const events: Event[] = []; |
||
17 | const type = |
||
18 | holiday.getLeaveType() === HolidayLeaveType.MEDICAL |
||
19 | ? EventType.MEDICAL_LEAVE |
||
20 | : EventType.HOLIDAY; |
||
21 | |||
22 | events.push(new Event(type, holiday.getUser(), 100, '2020-01-01')); |
||
23 | |||
27 |